<template>
  <el-card class="box-card">
    <div slot="header" class="clearfix">
      <span>修改密码</span>
      <el-button style="float: right; padding: 3px 0" type="text" @click="handleClick()">确认修改</el-button>
    </div>
    <div>
      <el-input v-model="input" placeholder="请输入密码" show-password />
    </div>
  </el-card>
</template>
<script>
import {ChagePwd} from "../../api/personal";

export default {
  data() {
    return {
      input: ''
    }
  },
  created() {
  },
  methods: {
    handleClick(){
      ChagePwd({pwd:this.input}).then(res=>{ this.$message.success('修改成功！')}).catch(err => {
        this.$message.error('请求失败！')
      })
    }

  }
}
</script>

<style scoped>

</style>
